/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

#include "spi.h"

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define GPIO_LED_Pin GPIO_PIN_13
#define GPIO_LED_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_1_Pin GPIO_PIN_0
#define GPIO_GRAY_TRACK_1_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_2_Pin GPIO_PIN_1
#define GPIO_GRAY_TRACK_2_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_3_Pin GPIO_PIN_2
#define GPIO_GRAY_TRACK_3_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_4_Pin GPIO_PIN_3
#define GPIO_GRAY_TRACK_4_GPIO_Port GPIOC
#define ADC_POWER_Pin GPIO_PIN_0
#define ADC_POWER_GPIO_Port GPIOA
#define GPIO_BUZZER_Pin GPIO_PIN_1
#define GPIO_BUZZER_GPIO_Port GPIOA
#define DEBUG_TX_Pin GPIO_PIN_2
#define DEBUG_TX_GPIO_Port GPIOA
#define DEBUG_RX_Pin GPIO_PIN_3
#define DEBUG_RX_GPIO_Port GPIOA
#define W25Q64_SPI_CS_Pin GPIO_PIN_4
#define W25Q64_SPI_CS_GPIO_Port GPIOA
#define W25Q64_SPI_SCLK_Pin GPIO_PIN_5
#define W25Q64_SPI_SCLK_GPIO_Port GPIOA
#define W25Q64_SPI_MISO_Pin GPIO_PIN_6
#define W25Q64_SPI_MISO_GPIO_Port GPIOA
#define W25Q64_SPI_MOSI_Pin GPIO_PIN_7
#define W25Q64_SPI_MOSI_GPIO_Port GPIOA
#define GPIO_GRAY_TRACK_5_Pin GPIO_PIN_4
#define GPIO_GRAY_TRACK_5_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_6_Pin GPIO_PIN_5
#define GPIO_GRAY_TRACK_6_GPIO_Port GPIOC
#define GPIO_GRAY_TRACK_7_Pin GPIO_PIN_0
#define GPIO_GRAY_TRACK_7_GPIO_Port GPIOB
#define GPIO_GRAY_TRACK_9_Pin GPIO_PIN_1
#define GPIO_GRAY_TRACK_9_GPIO_Port GPIOB
#define TOF200F_TX_Pin GPIO_PIN_10
#define TOF200F_TX_GPIO_Port GPIOB
#define TOF200F_RX_Pin GPIO_PIN_11
#define TOF200F_RX_GPIO_Port GPIOB
#define MOTORA_IN1_Pin GPIO_PIN_12
#define MOTORA_IN1_GPIO_Port GPIOB
#define MOTORA_IN2_Pin GPIO_PIN_13
#define MOTORA_IN2_GPIO_Port GPIOB
#define MOTORB_IN1_Pin GPIO_PIN_14
#define MOTORB_IN1_GPIO_Port GPIOB
#define MOTORB_IN2_Pin GPIO_PIN_15
#define MOTORB_IN2_GPIO_Port GPIOB
#define MOTORA_PWM_Pin GPIO_PIN_6
#define MOTORA_PWM_GPIO_Port GPIOC
#define MOTORB_PWM_Pin GPIO_PIN_7
#define MOTORB_PWM_GPIO_Port GPIOC
#define MOTORA_ENCODER_Pin GPIO_PIN_8
#define MOTORA_ENCODER_GPIO_Port GPIOC
#define MOTORB_ENCODER_Pin GPIO_PIN_9
#define MOTORB_ENCODER_GPIO_Port GPIOC
#define SERVO_PWM_1_Pin GPIO_PIN_8
#define SERVO_PWM_1_GPIO_Port GPIOA
#define SERVO_PWM_2_Pin GPIO_PIN_9
#define SERVO_PWM_2_GPIO_Port GPIOA
#define SERVO_PWM_3_Pin GPIO_PIN_10
#define SERVO_PWM_3_GPIO_Port GPIOA
#define SERVO_PWM_4_Pin GPIO_PIN_11
#define SERVO_PWM_4_GPIO_Port GPIOA
#define GPIO_KEY_1_Pin GPIO_PIN_12
#define GPIO_KEY_1_GPIO_Port GPIOA
#define GPIO_KEY_2_Pin GPIO_PIN_15
#define GPIO_KEY_2_GPIO_Port GPIOA
#define GPIO_KEY_3_Pin GPIO_PIN_3
#define GPIO_KEY_3_GPIO_Port GPIOB
#define GPIO_KEY_4_Pin GPIO_PIN_4
#define GPIO_KEY_4_GPIO_Port GPIOB
#define GPIO_KEY_5_Pin GPIO_PIN_5
#define GPIO_KEY_5_GPIO_Port GPIOB
#define USART_JY61P_TX_Pin GPIO_PIN_6
#define USART_JY61P_TX_GPIO_Port GPIOB
#define USART_JY61P_RX_Pin GPIO_PIN_7
#define USART_JY61P_RX_GPIO_Port GPIOB
#define OLED_I2C_SCL_Pin GPIO_PIN_8
#define OLED_I2C_SCL_GPIO_Port GPIOB
#define OLED_I2C_SDA_Pin GPIO_PIN_9
#define OLED_I2C_SDA_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

static void delay_ms(int32_t ms)
{

}


static void delay_us(int32_t us)
{

}


/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
